package org.jiajie.coffeecodes.aop.cglib;

import org.springframework.cglib.proxy.Enhancer;
import org.springframework.cglib.proxy.MethodInterceptor;

/**
 * @author jie
 */
public class ProxyUtil2 {
    @SuppressWarnings("unchecked")
    public static <T> T proxyOne(Class<?> clz, MethodInterceptor interceptor){
        return (T) Enhancer.create(clz, interceptor);
    }
}
